# -*- coding: utf-8 -*-
# standard
import os
import sys

# third

# local
_P_PATH =  os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
if _P_PATH not in sys.path:
    sys.path.append(_P_PATH)
from db.sqlalchemy_dbc import *


"""
@Title:   
@File: base_model.py
@Author: walle 2024年03日08日 09时24分03秒
@Version: 1.0.0
@Desc: 
"""


class MyEnum(Enum):
    # 枚举基类
    @classmethod
    def get_selector(cls) -> list:
        """
        返回一个选择器
        """
        return [{"name": key.value, "value": key.value} for key in cls]



if __name__ == '__main__':
    pass